package com.itxx.keyCase;

import java.io.*;

public class ByteStreamTest4 {
    public static void main(String[] args) throws IOException {
        //FileInputStream fis = new FileInputStream("D:\\AAA.txt");
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\AAA.txt"));
        // FileOutputStream fos = new FileOutputStream("day11\\BufferedFileone");
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day11\\BufferedFileone"));
        //采用一次读写一个字节的方式
        int b;
        while ((b = bis.read()) != -1) {
            bos.write(b);
        }
        //结束流资源
        bis.close();
        bos.close();

    }
}
